﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020001AF RID: 431
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChallengeBossBuffList : IMessage<ChallengeBossBuffList>, IMessage, IEquatable<ChallengeBossBuffList>, IDeepCloneable<ChallengeBossBuffList>, IBufferMessage
	{
		// Token: 0x170005A6 RID: 1446
		// (get) Token: 0x06001367 RID: 4967 RVA: 0x00037525 File Offset: 0x00035725
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChallengeBossBuffList> Parser
		{
			get
			{
				return ChallengeBossBuffList._parser;
			}
		}

		// Token: 0x170005A7 RID: 1447
		// (get) Token: 0x06001368 RID: 4968 RVA: 0x0003752C File Offset: 0x0003572C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChallengeBossBuffListReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170005A8 RID: 1448
		// (get) Token: 0x06001369 RID: 4969 RVA: 0x0003753E File Offset: 0x0003573E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChallengeBossBuffList.Descriptor;
			}
		}

		// Token: 0x0600136A RID: 4970 RVA: 0x00037545 File Offset: 0x00035745
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossBuffList()
		{
		}

		// Token: 0x0600136B RID: 4971 RVA: 0x00037558 File Offset: 0x00035758
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossBuffList(ChallengeBossBuffList other) : this()
		{
			this.buffList_ = other.buffList_.Clone();
			this.challengeBossConst_ = other.challengeBossConst_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600136C RID: 4972 RVA: 0x0003758E File Offset: 0x0003578E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBossBuffList Clone()
		{
			return new ChallengeBossBuffList(this);
		}

		// Token: 0x170005A9 RID: 1449
		// (get) Token: 0x0600136D RID: 4973 RVA: 0x00037596 File Offset: 0x00035796
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BuffList
		{
			get
			{
				return this.buffList_;
			}
		}

		// Token: 0x170005AA RID: 1450
		// (get) Token: 0x0600136E RID: 4974 RVA: 0x0003759E File Offset: 0x0003579E
		// (set) Token: 0x0600136F RID: 4975 RVA: 0x000375A6 File Offset: 0x000357A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeBossConst
		{
			get
			{
				return this.challengeBossConst_;
			}
			set
			{
				this.challengeBossConst_ = value;
			}
		}

		// Token: 0x06001370 RID: 4976 RVA: 0x000375AF File Offset: 0x000357AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChallengeBossBuffList);
		}

		// Token: 0x06001371 RID: 4977 RVA: 0x000375C0 File Offset: 0x000357C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChallengeBossBuffList other)
		{
			return other != null && (other == this || (this.buffList_.Equals(other.buffList_) && this.ChallengeBossConst == other.ChallengeBossConst && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001372 RID: 4978 RVA: 0x00037610 File Offset: 0x00035810
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.buffList_.GetHashCode();
			if (this.ChallengeBossConst != 0U)
			{
				num ^= this.ChallengeBossConst.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001373 RID: 4979 RVA: 0x0003765D File Offset: 0x0003585D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001374 RID: 4980 RVA: 0x00037665 File Offset: 0x00035865
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001375 RID: 4981 RVA: 0x00037670 File Offset: 0x00035870
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.buffList_.WriteTo(ref output, ChallengeBossBuffList._repeated_buffList_codec);
			if (this.ChallengeBossConst != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.ChallengeBossConst);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001376 RID: 4982 RVA: 0x000376C0 File Offset: 0x000358C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.buffList_.CalculateSize(ChallengeBossBuffList._repeated_buffList_codec);
			if (this.ChallengeBossConst != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeBossConst);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001377 RID: 4983 RVA: 0x00037714 File Offset: 0x00035914
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChallengeBossBuffList other)
		{
			if (other == null)
			{
				return;
			}
			this.buffList_.Add(other.buffList_);
			if (other.ChallengeBossConst != 0U)
			{
				this.ChallengeBossConst = other.ChallengeBossConst;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001378 RID: 4984 RVA: 0x00037761 File Offset: 0x00035961
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001379 RID: 4985 RVA: 0x0003776C File Offset: 0x0003596C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U && num != 50U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ChallengeBossConst = input.ReadUInt32();
					}
				}
				else
				{
					this.buffList_.AddEntriesFrom(ref input, ChallengeBossBuffList._repeated_buffList_codec);
				}
			}
		}

		// Token: 0x040007FA RID: 2042
		private static readonly MessageParser<ChallengeBossBuffList> _parser = new MessageParser<ChallengeBossBuffList>(() => new ChallengeBossBuffList());

		// Token: 0x040007FB RID: 2043
		private UnknownFieldSet _unknownFields;

		// Token: 0x040007FC RID: 2044
		public const int BuffListFieldNumber = 6;

		// Token: 0x040007FD RID: 2045
		private static readonly FieldCodec<uint> _repeated_buffList_codec = FieldCodec.ForUInt32(50U);

		// Token: 0x040007FE RID: 2046
		private readonly RepeatedField<uint> buffList_ = new RepeatedField<uint>();

		// Token: 0x040007FF RID: 2047
		public const int ChallengeBossConstFieldNumber = 14;

		// Token: 0x04000800 RID: 2048
		private uint challengeBossConst_;
	}
}
